home *** CD-ROM | disk | FTP | other *** search
/ Computer Life 1995 December / Computer Life December 1995.iso / ukonline / media / otherapp / nologin.dl_ / nologin
Text File  |  1995-09-08  |  1KB  |  45 lines

  1. // dialup and connect to a UK Online server 
  2. // Note that this does not require any
  3. // login and password authentication during the connect process
  4. // Beta V4 TJK 10 June 95
  5.  
  6. // SENDPRIVATE (x) sends the string associated to the entry Privatex
  7. // Those used in tbsetup.ini define:
  8. // 
  9. // Private1    - Modem Initialization string
  10. // Private2    - Modem Hangup string
  11. // Private3    - User login
  12. // Private4    - User password
  13.  
  14. PROGON
  15. // Uncomment the following line to see the serial line
  16. // traffic during the execution of login script
  17. // DEBUGON
  18. DELAY (20)
  19. TIMEOUT (5)
  20. // Make two attempts to initialize the modem
  21. REPEAT (1)
  22.     PROGTEXT ("Initializing modem")
  23.     SEND ("+++ATZ\013")
  24.     WAITTEXT ("OK")
  25.     SENDPRIVATE (1)
  26.     SEND ("\013")
  27.     WAITTEXT ("OK")
  28.     BREAKONSUCCESS ("")
  29.     END
  30. ABORTONFAILURE ("Unable to initialize the modem")
  31. TIMEOUT (60)
  32. REPEAT (1)
  33.     PROGTEXT ("Dialing the UK Online Server")
  34.     SEND ("ATDT")
  35.     SENDPRIVATE (3)
  36.     SENDNUMBER
  37.     SEND ("\013")
  38.  
  39.     WAITTEXT ("CONNECT")
  40.     BREAKONSUCCESS ("")
  41.     CONFIRM ("Unable to connect. Try again?")
  42. END
  43. ABORTONFAILURE ("Unable to establish a connection")
  44. PROGOFF
  45.